#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author  : lei.wang
from rest_framework import status
from rest_framework.exceptions import APIException


class NotFoundOpenIdException(APIException):

    status_code = status.HTTP_400_BAD_REQUEST
    default_detail = '微信登录openid获取失败'


class InvalidTokenException(APIException):

    status_code = status.HTTP_401_UNAUTHORIZED
    default_detail = '无效的token'


class TokenExpiredException(APIException):

    status_code = status.HTTP_401_UNAUTHORIZED
    default_detail = 'token 已经失效'
